package c.x.jy.dao.dto;

import c.x.jy.common.annotation.SetValue;
import c.x.jy.dao.entity.TeacherEntity;
import c.x.jy.dao.entity.TeacherServiceEntity;
import lombok.Data;

import java.util.List;

@Data
public class TeacherEntityDto extends TeacherEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT name FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String membername;
	
	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT nickname FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String membernickName;

	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT headimgurl FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String headimgurl;
	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT country FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String country;
	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT province FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String province;
	//@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT city FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String city;
	
	private Long itemId;
	
	@SetValue(beanName = "teacherServiceService", method = "selectAllListBymemberId", parameter = "#memberId", vType = List.class)
	private List<TeacherServiceEntity> serviceList;

	@SetValue(beanName = "teacherServiceService", method = "getTeacherMiniPrice", parameter = "#id", vType = String.class)
	private String minprice;

	//商家名称
	@SetValue(beanName = "commonService", method = "selectData", parameter = "select name from `t_business` WHERE id=,#businessId", vType = String.class)
	private String businessName;

	//审核人姓名
	@SetValue(beanName = "commonService", method = "selectData", parameter = "select username from `sys_user` where user_id=,#checkId", vType = String.class)
	private String checkName;

	@SetValue(beanName = "commonService", method = "queryonline", parameter = "#memberId", vType = boolean.class)
	private boolean online;
}
